package com.pfs.internal.timestamp.entities;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
//import javax.persistence.NamedQueries;
//import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "History")
// @NamedQueries(@NamedQuery(name = "History.searchHistories", query =
// "select history from History history where "))
public class History {
	@Id
	private Integer recordID;
	private Integer accountID;
	private Date timeStamp;
	@Column(name = "deleted", columnDefinition = "tinyint")
	private Integer deleted;
	@Column(name = "type1", columnDefinition = "smallint")
	private Integer type1;
	@Column(name = "type2", columnDefinition = "smallint")
	private Integer type2;
	@Column(name = "param1", columnDefinition = "smallint")
	private Integer param1;
	@Column(name = "param2", columnDefinition = "smallint")
	private Integer param2;
	@Column(name = "param3", columnDefinition = "nvarchar")
	private String param3;
	private Integer link1;
	private Integer link2;
	private Integer link3;
	private Integer link4;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "link3", nullable = false, insertable = false, updatable = false)
	private CardHolder cardHolder;

	public Integer getRecordID() {
		return recordID;
	}

	public void setRecordID(Integer recordID) {
		this.recordID = recordID;
	}

	public Integer getAccountID() {
		return accountID;
	}

	public void setAccountID(Integer accountID) {
		this.accountID = accountID;
	}

	public Date getTimeStamp() {
		return timeStamp;
	}

	public void setTimeStamp(Date timeStamp) {
		this.timeStamp = timeStamp;
	}

	public Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

	public Integer getType1() {
		return type1;
	}

	public void setType1(Integer type1) {
		this.type1 = type1;
	}

	public Integer getType2() {
		return type2;
	}

	public void setType2(Integer type2) {
		this.type2 = type2;
	}

	public Integer getParam1() {
		return param1;
	}

	public void setParam1(Integer param1) {
		this.param1 = param1;
	}

	public Integer getParam2() {
		return param2;
	}

	public void setParam2(Integer param2) {
		this.param2 = param2;
	}

	public String getParam3() {
		return param3;
	}

	public void setParam3(String param3) {
		this.param3 = param3;
	}

	public Integer getLink1() {
		return link1;
	}

	public void setLink1(Integer link1) {
		this.link1 = link1;
	}

	public Integer getLink2() {
		return link2;
	}

	public void setLink2(Integer link2) {
		this.link2 = link2;
	}

	public Integer getLink3() {
		return link3;
	}

	public void setLink3(Integer link3) {
		this.link3 = link3;
	}

	public Integer getLink4() {
		return link4;
	}

	public void setLink4(Integer link4) {
		this.link4 = link4;
	}

	public CardHolder getCardHolder() {
		return cardHolder;
	}

	public void setCardHolder(CardHolder cardHolder) {
		this.cardHolder = cardHolder;
	}

}
